package cn.pku.sirx.snad.uias.analyzer.relationship;

import org.springframework.util.Assert;

/**
 * @author WangXiao
 */
public class FriendshipAnalyzer extends AbstractRelationshipAnalyzer {

	@Override
	public int analyze(String fromUserId, String toUserId) {
		Assert.notNull(fromUserId);
		Assert.notNull(toUserId);

		return friendDao.isFriend(fromUserId, toUserId) ? 1 : 0;
	}

}
